import request from '@/utils/request'
export default {

    getVideo(videoId) {
        return request({
            url: '/eduservice/video/getVideoById',
            method: 'get',
            params:{videoId}
        })
    },

    updateVideo(video) {
        return request({
            url: '/eduservice/video/updateVideo',
            method: 'put',
            data: video
        })
    },

    //添加小节
    addVideo(video) {
        return request({
            url: '/eduservice/video/addVideo',
            method: 'post',
            data: video
          })
    },
    
    //删除小节
    deleteVideo(id) {
        return request({
            url: '/eduservice/video/deleteVideo/'+id,
            method: 'delete'
          })
    },

    deleteAlyVod(id) {
        return request({
            url: `/eduvod/video/removeAlyVideo/${id}`,
            method: 'delete'
        })
    }
}